package blog.service.back;

import blog.entity.Consumer;
import blog.vo.back.*;
import blog.vo.common.PaginationVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 　　* @description: TODO
 * 　　* @param
 * 　　* @return
 * 　　* @throws
 * 　　* @author Administrator
 * 　　* @date $ $
 *
 */
public interface ConsumerBackService {
    Consumer emailLogin(EmailLoginVO emailLoginVO);
    Consumer phoneNumberLogin(PhoneNumberLoginVO phoneNumberLoginVO);
    List<Consumer> getAllConsumer(PaginationVO paginationVO);

    List<Consumer> byConsumerRootGetConsumerInfo(ByConsumerRootGetConsumerInfoVO byConsumerRootGetConsumerInfoVO);
    List<Consumer> byConsumerRootAndConsumerStatusGetConsumerInfo(ByConsumerRootAndConsumerStatusGetConsumerInfoVO byConsumerRootAndConsumerStatusGetConsumerInfoVO);
    List<Consumer> byConsumerNameGetConsumerInfo(ByConsumerNameGetConsumerInfoVO byConsumerNameGetConsumerInfoVO);
    Consumer byConsumerUuidGetConsumerInfo(ByConsumerUuidGetConsumerInfoVO byConsumerNameGetConsumerInfoVO);

    int updateConsumerInfo(UpdateConsumerInfoVO updateConsumerInfoVO);
    int updateConsumerHeadPortrait(UpdateConsumerHeadPortraitVO updateConsumerHeadPortraitVO);
    int addRootConsumer(AddRootConsumerVO addRootConsumerVO);
}
